<?php
namespace app\common\model;
class Role extends \think\Model
{
    protected $resultSetType = 'collection';


    //关联校色点位
    public function point()
    {
        return $this->hasMany('building_point','role','id');
    }

    public function pointA()
    {
        return $this->hasOne('building_point','role','id');
    }
}